package com.jic.veteran.service;

import com.jic.veteran.dto.CmsArticleQueryParam;
import com.jic.veteran.model.CmsArticleInfo;
import java.util.List;

/**
 * 文章管理Service
 * Created by macro on 2018/10/11.
 */
public interface CmsArticleService {
  /**
   * 文章列表.
   */
  List<CmsArticleInfo> list(CmsArticleQueryParam queryParam, Integer pageSize, Integer pageNum);

  /**
   * 新增或更新文章信息.
   * @param articleInfo 文章信息
   * @return count
   */
  int saveOrUpdate(CmsArticleInfo articleInfo);

  int changeStatus(List<Long> ids, String status);

  int delete(List<Long> ids);

  CmsArticleInfo detail(Long id);

}
